import java.awt.*;

public class Explosion
{
  int radius;
  Color color;
  int x;
  int y;
  int maxRadius;
  boolean decreasing;
  
  public Explosion(int x, int y, int radius)
  {
    this.x=x;
    this.y=y;
    maxRadius=radius;
    decreasing=false;
    color = new Color(255,0,0);
  }
  
  public void advance()
  {
    if (!decreasing)
    {
      radius+=5;
      if (radius>maxRadius)
      {
        decreasing=true;
      }
    }
    else
    {
      radius-=5;
      if (radius<0)
        radius=0;
    }
  }
  
}